LIBPATH = `pwd`/../sqlite/install/lib/
CFLAGS += -I `pwd`/../inc/ -I `pwd`/../sqlite/install/include
LDFLAGS += -L ${LIBPATH} -lsqlite3 -lpthread 
NAME = client

all: clean create_o
	gcc -lm `pwd`/*.o -o ${NAME} ${CFLAGS} ${LDFLAGS}
	rm -f *.o

create_o:
	gcc -c `pwd`/*.c ${CFLAGS} ${LDFLAGS}

clean:
	rm -f ${NAME}
	rm -f *.o 

distclean: clean
	rm -f *.db
	rm -f *.log
	rm -f *.bak
	rm -f val*

run:
	export LD_LIBRARY_PATH=${LIBPATH}

	#export PATH= $PATH:`pwd`/../inc/
